//
//  LSMineListCell.m
//  LookScore
//
//  Created by wr on 2017/12/5.
//  Copyright © 2017年 ChongQingXunTiCompany. All rights reserved.
//

#import "LSMineListCell.h"

@implementation LSMineListCell


+(LSMineListCell *)mineListTableViewCellByTableView:(UITableView *)tableView{
    LSMineListCell *cell=[tableView dequeueReusableCellWithIdentifier:NSStringFromClass(self)];
    if (!cell) {
        cell=[[LSMineListCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:NSStringFromClass(self)];
        cell.selectionStyle=UITableViewCellSelectionStyleNone;
    }
    return cell;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addContentView];
    }
    
    return self;
}

-(void)addContentView{
    
    UILabel *titleLab=[[UILabel alloc]init];
	titleLab.font=LSFontSize13;
	titleLab.textColor=LSTitleGrayColor1;
    [self.contentView addSubview:titleLab];
    self.titleLab=titleLab;
    
    UIButton *rightImgBu=[UIButton new];
    [rightImgBu setImage:[UIImage imageNamed:@"MineRightLightGray"] forState:UIControlStateNormal];
	
    [self.contentView addSubview:rightImgBu];
    self.rightImgBu=rightImgBu;
	
    rightImgBu.sd_layout.rightEqualToView(self.contentView).offset(-LSSpaceLeftWidth1).centerYEqualToView(self.contentView).widthIs(20).heightIs(20);

 titleLab.sd_layout.leftEqualToView(self.contentView).offset(LSSpaceLeftWidth2).centerYEqualToView(self.contentView).heightIs(20).rightSpaceToView(rightImgBu,rightImgBu.left);
    
    UIView *lineView=[[UIView alloc]init];
	lineView.backgroundColor=LSBackGroundColor;
    [self.contentView addSubview:lineView];
    lineView.sd_layout.leftEqualToView(self.contentView).rightEqualToView(self.contentView).bottomEqualToView(self.contentView).heightIs(1);
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end

